from flask import Flask,Blueprint

app = Flask(__name__)

@app.route('/')
def index():
    return 'Hello'

user_bp = Blueprint('user',__name__)

@user_bp.route('/login/')
def login():
    return '登录页面'

@user_bp.route('/register/')
def register():
    return '注册页面'

app.register_blueprint(user_bp,url_prefix='/user')

if __name__ == '__main__':
    app.run(debug=True)